import { http } from "@/utils";

export const getUserInfo = () => {
  return async (dispatch, getState) => {
    const res = await http.get('/user/profile')

    dispatch({
      type: 'user/getUserInfo',
      payload: res.data.data
    })
  }
}